function msg(obj) {
    if(obj.code === 0){
        layer.msg(obj.message, {icon: 5});
    }
    if(obj.code === 1){
        layer.alert(obj.message, {icon: 6});
    }
}